package app.modules.example.dto.web;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "示例DTO")
public class WebExampleSaveDTO {

    @Length(max = 50)
    @NotEmpty
    @Schema(title = "名称")
    private String exampleName;

    @Length(max = 200)
    @Schema(title = "备注")
    private String remark;

    @Schema(title = "是否启用")
    private Boolean enableFlag;

    public String getExampleName() {
        return exampleName;
    }

    public void setExampleName(String exampleName) {
        this.exampleName = exampleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

}
